package com.zone.baseproject.view;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.zone.baseproject.R;
import com.zone.baseproject.base.BaseActivity2;
import com.zone.baseproject.base.PBase;
import com.zone.baseproject.contract.MainContract;
import com.zone.baseproject.presenter.MainPresenterImpl;
import com.zone.baseproject.utils.L;

public class MainActivity extends BaseActivity2 implements MainContract.View{

    private MainPresenterImpl mainPresenter;

    @Override
    public int setLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    public void init() {
        mainPresenter = new MainPresenterImpl();
        mainPresenter.attachView(this);

    }

    @Override
    public void business() {
        mainPresenter.asddf();
    }

    @Override
    public PBase getPresenter() {
        return mainPresenter;
    }

    @Override
    public boolean isUseToolbar() {
        return true;
    }


    @Override
    public void asd() {
        L.d(">>>>>>>>>>>>>>>>>>");
    }
}
